import request from '@/utils/request'


export function machineList(query) {
  return request({
    url: '/module/machine/list',
    method: 'get',
    params: query
  })
}

//机器记录id
export const getMachineRecordApi=(query)=>{
  return request({
    url:'/module/machineRecord/listByMachine',
    method:"GET",
    params:query
  })
}
export const modifyMachineApi=(data)=>{
  return request({
    url:'/module/machine/put/edit2',
    method:"put",
    data
  })
}


// 首页扫码 saoma
export const searchMachineApi=(data)=>{
  return request({
    url:'/module/returnReceiptOrder/add2',
    method:"POST",
    data
  })
}
// 机器使用记录
export const machineRecodeList=(query)=>{
	return request({
		url:'/module/machineRecord/list',
		method:"GET",
		   params: query
	})
}
// 根据机器编码查询订单
export function getmachineOrder(data){
	return request({
		url:'/module/returnReceiptOrder/machineOrder',
		method:'GET',
		data,
	})
}
// 订单入库记录
export function getorderMachineList(query){
	return request({
		url:'/module/machineRecord/list',
		methods:'GET',
		params:query
	})
}